package cn.huiyunche.bms.backend.service;

import cn.huiyunche.bms.backend.bo.AdjustBO;
import cn.huiyunche.bms.backend.bo.OrderBO;
import cn.huiyunche.bms.backend.query.SServiceOrderConditions;
import cn.huiyunche.commons.domain.PageVo;
import org.springframework.validation.BindingResult;

import java.util.Map;

/**
 * Created by Felix on 2017/8/2 9527.
 */
public interface OrderService {

    /**
     * 根据条件查询订单列表
     * @param pageVo
     * @param conditions
     * @return
     * @throws Exception
     */
    Map<String, Object> queryOrderByConditions(PageVo pageVo, SServiceOrderConditions conditions) throws Exception;

    /**
     * 价格调整
     * @param bo
     * @param br
     * @return
     * @throws Exception
     */
    Integer updateCost(AdjustBO bo, BindingResult br) throws Exception;

    /**
     * 根据订单ID查询订单信息
     *
     * @param id
     * @return
     * @throws Exception
     */
    OrderBO getOrderBOById(Long id) throws Exception;
}
